import service from '@/utils/request'

// @Tags UserShareInfor
// @Summary 创建分享信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserShareInfor true "创建分享信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /userShareInfor/createUserShareInfor [post]
export const createUserShareInfor = (data) => {
  return service({
    url: '/userShareInfor/createUserShareInfor',
    method: 'post',
    data
  })
}

// @Tags UserShareInfor
// @Summary 删除分享信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserShareInfor true "删除分享信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userShareInfor/deleteUserShareInfor [delete]
export const deleteUserShareInfor = (params) => {
  return service({
    url: '/userShareInfor/deleteUserShareInfor',
    method: 'delete',
    params
  })
}

// @Tags UserShareInfor
// @Summary 批量删除分享信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除分享信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userShareInfor/deleteUserShareInfor [delete]
export const deleteUserShareInforByIds = (params) => {
  return service({
    url: '/userShareInfor/deleteUserShareInforByIds',
    method: 'delete',
    params
  })
}

// @Tags UserShareInfor
// @Summary 更新分享信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserShareInfor true "更新分享信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userShareInfor/updateUserShareInfor [put]
export const updateUserShareInfor = (data) => {
  return service({
    url: '/userShareInfor/updateUserShareInfor',
    method: 'put',
    data
  })
}

// @Tags UserShareInfor
// @Summary 用id查询分享信息
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.UserShareInfor true "用id查询分享信息"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userShareInfor/findUserShareInfor [get]
export const findUserShareInfor = (params) => {
  return service({
    url: '/userShareInfor/findUserShareInfor',
    method: 'get',
    params
  })
}

// @Tags UserShareInfor
// @Summary 分页获取分享信息列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取分享信息列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userShareInfor/getUserShareInforList [get]
export const getUserShareInforList = (params) => {
  return service({
    url: '/userShareInfor/getUserShareInforPublic',
    method: 'get',
    params
  })
}
